<?
 require "stats.inc.php"; 
 require "stats-aggreg.inc.php";  
 
 if(file_exists(dirname(__FILE__)."/stats.serialized"))
 {
   $stats = unserialize(file_get_contents(dirname(__FILE__)."/stats.serialized"));
 }
 else
 {
	$stats = new stats; 
	$alpha = new dns_server("alpha");
	$gamma = new dns_server("gamma");
	$stats->add_dnsserver($alpha);
	$stats->add_dnsserver($gamma);
	$alpha = null;
	$gamma = null; 
 }
 
print_r($stats);
?>
